home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Win Ghost / Setup_Win_Ghost_3.00.exe / {app} / plugins / mailme / mailme.php < prev    next >
Text File  |  2004-01-15  |  1KB  |  65 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2.  
  3. <html>
  4. <head>
  5.     <title>Win Ghost plug-in:MailMe</title>
  6.     <style type="text/css">
  7.     body {
  8.     font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif;
  9.     color: Black;
  10.     text-align: center;
  11.     }
  12.     </style>
  13. </head>
  14.  
  15. <body>
  16. <?php
  17. $dateTime12H = "";
  18. $dateTime24H = "";
  19. $usePassword = "";
  20. $myPassword = "";
  21. $myMailAdress = "";
  22. $mySubject = "";
  23. $myMessage = "";
  24. $headers  = "";
  25.  
  26. $dateTime12H = date("m j, Y, g:i a"); //12 hour clock.
  27. $dateTime24H = date("m j, Y, H:i"); //24 hour clock.
  28.  
  29. include("config.php");
  30.  
  31. $mySubject = "Win Ghost trigger";
  32. $myMessage = "Win Ghost found a trigger.\n\n24 hour clock: $dateTime24H\n12 hour clock: $dateTime12H";
  33.  
  34. $headers  = "MIME-Version: 1.0\r\n";
  35. $headers .= "Content-type: text; charset=iso-8859-1\r\n";
  36. $headers .= "From:Win Ghost\r\n";
  37. $headers .= "X-Mailer: Win Ghost\r\n";
  38.  
  39. IF ($usePassword){
  40.     IF ($_GET["password"]==$myPassword){
  41.         IF (mail($myMailAdress, $mySubject, $myMessage, $headers)){
  42.             echo "A mail has been sent to your mailadress.";
  43.         }
  44.         ELSE{
  45.             echo "An error has occured, could not send mail.";
  46.         }
  47.     }
  48.     ELSE{
  49.         echo "Error: password is not correct.";
  50.     }
  51. }
  52. ELSE{
  53.     IF (mail($myMailAdress, $mySubject, $myMessage, $headers)){
  54.         echo "A mail has been sent to your mailadress.";
  55.     }
  56.     ELSE{
  57.         echo "An error has occured, could not send mail.";
  58.     }
  59. }        
  60.         
  61. ?>
  62.  
  63. </body>
  64. </html>
  65.